*THIS FILE GENERATES VARIABLES FOR USE IN VILLAGE ANALYSIS

use "Village Panel and Census.dta", clear

*Village-year panel analysis

encode village, gen(code)

gen after = 0
replace after = 1 if year ==2009

gen sewafter = sewa*after
label var sewafter "SEWA village post intervention"


*Set as panel

sort code year
xtset code after, yearly


